/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package nokia.iap.ui.lib.onebutton;

/**
 *
 * @author zinin
 */
public class GxButtonCancelBuy extends GxButtonBase{
    private final OneButtonIAP context;
    
    public GxButtonCancelBuy(OneButtonIAP client, GxColorTheme theme){
        super("Cancel", 0, 0, theme);
        context = client;
    }

    public boolean isHidden() {
        return (!isVisible());
    }

    public void performAction() {
        context.screenBuf.delete(0, context.screenBuf.length());
        context.cancelImmediatelly();
    }
}
